package com.vca.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Li
 * @program VCA_Mini_Program
 * @description 设置微吼回调地址请求类
 * @classname VhallSetCallbackRequest
 * @since 2022/12/28 09:51:59
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VhallSetCallbackRequest", description="设置微吼回调地址请求类")
public class VhallSetCallbackRequest implements Serializable {

    private static final long serialVersionUID = 1319367772942519466L;

    @ApiModelProperty(value = "1:添加 2:删除 默认为 1")
    private Integer type;

    @ApiModelProperty(value = "数据传输私钥 注意 ：第一次设置该参数为必选，非第一次为更新")
    private String secretKey;

    @ApiModelProperty(value = "回调URL 注意 ：第一次设置该参数为必选，非第一次为更新")
    @NotBlank(message = "回调URL不可为空")
    private String callbackUrl;

    @ApiModelProperty(value = "需要回调的事件")
    private Integer callbackEvent;
}
